package com.atfusu.dao;

import com.atfusu.base.BaseDao;
import com.atfusu.bean.entity.Permission;

import java.io.Serializable;
import java.util.List;

/**
 * Title:
 * Author: fusu
 * DateTime:  2022/12/4
 * Description:
 **/
public interface PermissionDao extends BaseDao<Permission> {

    List<Permission> getPermissionByAdmin(Long id);

    List<Permission> findPermissionByParentId(Serializable parentId);

    List<String> findAllCode();

    List<String> findCodeByAdminId(Long adminId);
}
